package com.lcxw.hxzbapi.entity.requestBean;

import javax.validation.constraints.NotBlank;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

@Setter
@Getter
@ToString
@Validated
@Data
public class RegisterRequestParam {

    @NotBlank(message = "手机号码不能为空")
    @Length(max = 11, min = 11, message = "手机号码长度必须是11位")
    private String telephone;

    @NotBlank(message = "密码不能为空")
    private String password;

    private String parentUserId;

    /**
     * 验证码
     */
    private String captcha;

}
